import React from 'react'
import style from './style.app'
import { validate } from './helper'

export default () => (
	<div className={style.root}>
    {
      [
        'last([1,2,3])|3',
        'last([])|null',
        'last(["a", "b"])|"b"'
      ].map(validate)
    }
	</div>
)
